package com.ruoyi.share.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件分享对象 share
 *
 * @author huacai
 * @date 2024-07-10
 */
public class Share extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分享Id */
    private Integer shareId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 文件ID */
    @Excel(name = "文件ID")
    private Integer filesId;

    /** 分享时间 */
    @Excel(name = "分享时间")
    private String shareTime;

    /** 到期时间 */
    @Excel(name = "到期时间")
    private String endTime;

    /** 访问次数 */
    @Excel(name = "访问次数")
    private Integer count;

    /** 分享人ID */
    @Excel(name = "分享人ID")
    private Integer userId;

    /** 验证码 */
    @Excel(name = "验证码")
    private String code;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Integer deptId;

    /** 分享人 */
    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setShareId(Integer shareId)
    {
        this.shareId = shareId;
    }

    public Integer getShareId()
    {
        return shareId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setFilesId(Integer filesId)
    {
        this.filesId = filesId;
    }

    public Integer getFilesId()
    {
        return filesId;
    }
    public void setShareTime(String shareTime)
    {
        this.shareTime = shareTime;
    }

    public String getShareTime()
    {
        return shareTime;
    }
    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    public String getEndTime()
    {
        return endTime;
    }
    public void setCount(Integer count)
    {
        this.count = count;
    }

    public Integer getCount()
    {
        return count;
    }
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

    public Integer getUserId()
    {
        return userId;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setDeptId(Integer deptId)
    {
        this.deptId = deptId;
    }

    public Integer getDeptId()
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("shareId", getShareId())
            .append("name", getName())
            .append("filesId", getFilesId())
            .append("shareTime", getShareTime())
            .append("endTime", getEndTime())
            .append("count", getCount())
            .append("userId", getUserId())
            .append("code", getCode())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deptId", getDeptId())
            .toString();
    }
}
